package fei.zhou.springboot1.business.bean.demo2;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Data;

@Component
//组合使用，但是ConfigurationProperties的优先级更高
@PropertySource("classpath:demo2/person4.properties")
@ConfigurationProperties(prefix = "person")
@Data
public class Person4 {

    private String lastName;
    

    private Integer age;
    

    private Boolean boss;


}